export const totalValue = {
   nonDm: ['royalty_sw', 'mva', 'logistics', 'quallty', 'tooling_scrap'],
   baseUnit: ['me_cmf', 'rf', 'nfc', 'wifi', 'dp', 'audio', 'charging', 'wlc', 'pkg', 'ip', 'acc', 'sensors', 'roBU'],
}

export const editSpecsRows = [
   { field: 'nonDM', label: 'Non-DM', disabled: true, noDesc: true },
   { field: 'royalty_sw', label: 'Royalty / SW', children: true, noDesc: true , isAdd: true },
   { field: 'mva', label: 'MVA', children: true, noDesc: true , isAdd: true },
   { field: 'logistics', label: 'Logistics', children: true, noDesc: true , isAdd: true },
   { field: 'quallty', label: 'Quality', children: true, noDesc: true , isAdd: true },
   { field: 'tooling_scrap', label: 'Tooling & Scrap', children: true, noDesc: true , isAdd: true },
   { field: 'baseUnit', label: 'BaseUnit', disabled: true },
   { field: 'me_cmf', label: 'ME/CMF',  children: true , isAdd: true},
   { field: 'rf', label: 'RF',  children: true , isAdd: true},
   { field: 'nfc', label: 'NFC',  children: true , isAdd: true},
   { field: 'wifi', label: 'WIFI',  children: true , isAdd: true},
   { field: 'dp', label: 'DP',  children: true , isAdd: true},
   { field: 'audio', label: 'Audio',  children: true , isAdd: true},
   { field: 'charging', label: 'Charging',  children: true , isAdd: true},
   { field: 'wlc', label: 'WLC',  children: true , isAdd: true},
   { field: 'pkg', label: 'IP',   children: true , isAdd: true},
   { field: 'ip', label: 'Pkg', children: true , isAdd: true},
   { field: 'acc', label: 'Acc',  children: true , isAdd: true},
   { field: 'sensors', label: 'Sensors',  children: true , isAdd: true},
   { field: 'roBU', label: 'RoBU',  children: true , isAdd: true},
   { field: 'chipset', label: 'Chipset' , isAdd: true},
   { field: 'memory', label: 'Memory' , isAdd: true},
   { field: 'charger', label: 'Charger' , isAdd: true},
   { field: 'battery', label: 'Battery' , isAdd: true},
   { field: 'display1', label: 'Display#1' , isAdd: true},
   { field: 'display2', label: 'Display#2' , isAdd: true},
   { field: 'cam1', label: 'Cam#1' , isAdd: true},
   { field: 'cam2', label: 'Cam#2' , isAdd: true},
   { field: 'cam3', label: 'Cam#3' , isAdd: true},
   { field: 'cam4', label: 'Cam#4' , isAdd: true},
   { field: 'cam5', label: 'Cam#5' , isAdd: true},
   { field: 'fCam1', label: 'F. Cam#1' , isAdd: true},
   { field: 'fCam2', label: 'F. Cam#2' , isAdd: true},
   { field: 'fps', label: 'FPS' , isAdd: true},
   { field: 'android', label: 'Android', isText: true},
   { field: 'od', label: 'OD', isText: true},
   { field: 'handbook', label: 'Handbook', isText: true}
]

export const viewSpecs = [
   {
      label: 'Network',
      children: [
         { label: 'Network', field: 'network', },
         { label: 'RF', field: 'specs.rf',}
      ]
   },
   {
      label: 'Launch',
      children: [
         { label: 'OK2Ship', field: 'ok2Ship', type: 'date'}
      ]
   },
   {
      label: 'Body',
      children: [
         { label: 'Dimension', field: ['dimension.d_x', 'dimension.d_y', 'dimension.d_z'], unit: 'mm'},
         { label: 'Bezel', field: 'dimension.bezel', unit: 'mm'},
         { label: 'Head', field: 'dimension.head', unit: 'mm'},
         { label: 'Chin', field: 'dimension.chin', unit: 'mm'},
         { label: 'Weight', field: 'dimension.weight', unit: 'g'},
         { label: 'CMF', field: 'specs.me_cmf'},
      ]
   },
   { label: 'Display#1', field: 'specs.display1'},
   { label: 'Display#2', field: 'specs.display2'},
   { label: 'Platform', field: 'specs.chipset'},
   { label: 'Memory', field: 'specs.memory'},
   {
      label: 'Main Camera',
      children: [
         { label: 'Cam #1', field: 'specs.cam1'},
         { label: 'Cam #2', field: 'specs.cam2',},
         { label: 'Cam #3', field: 'specs.cam3',},
         { label: 'Cam #4', field: 'specs.cam4',},
         { label: 'Cam #5', field: 'specs.cam5',},
      ]
   },
   { label: 'F. Cam#1', field: 'specs.fCam1'},
   { label: 'F. Cam#2', field: 'specs.fCam2'},
   { label: 'Selfie Camera', field: 'specs.fCam1'},
   { label: 'Sound', field: 'specs.audio'},
   {
      label: 'Comms',
      children: [
         { label: 'WLAN', field: 'specs.wifi'},
         { label: 'NFC', field: 'specs.nfc',},
         { label: 'DP', field: 'specs.dp',},
      ]
   },
   {
      label: 'Biometrics',
      children: [
         { label: 'FPS', field: 'specs.fps',},
      ]
   },
   { label: 'Sensors', field: 'specs.sensors'},
   {
      label: 'Power',
      children: [
         { label: 'Battery', field: 'specs.battery',},
         { label: 'Charging', field: 'specs.charging',},
         { label: 'Wireless', field: 'specs.wlc',},
      ]
   },
   { label: 'Android', field: 'specs.android'},
   // { label: 'B2B OK2Ship', field: 'DF', extraLine: 0}, // todo
   // { label: 'B2B Diffrence', field: 'DG', extraLine: 0}, // todo
]


export const dimensionsLabels = [
   { field: 'd_x', label: "X (mm)" },
   { field: 'd_y', label: "Y (mm)" },
   { field: 'd_z', label: "Z (mm)"},
   { field: 'bezel', label: "Bezel (mm)" },
   { field: 'head', label: "Head (mm)" },
   { field: 'chin', label: "Chin (mm)" },
   { field: 'weight', label: "Weight (g)" }
]
